package Lexical;

public class Real extends Token 
{
	public final double value;
	
	/**
	 * Constructor of a Token of the type Real.
	 * @param value a double value for the Real Token.
	 */
	public Real (double value) 
	{ 
		super (Tag.NUMBER); 
		this.value = value; 
	}
	
	/**
	 * Constructor of a Token of the type Real.
	 * @param value a double value for the Real Token.
	 * @param line	the line of the code where the Token was found.
	 */
	public Real (double value, int line) 
	{ 
		super (Tag.NUMBER, line); 
		this.value = value; 
	}
	
	public String toString()
	{
		return String.valueOf(value);
	}

}
